import 'package:taonile/generated/json/base/json_field.dart';
import 'package:taonile/generated/json/goods_area_category_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class GoodsAreaCategoryEntity {

	late int code=0;
	late String msg;
	late List<GoodsAreaCategoryData> data=[];
  
  GoodsAreaCategoryEntity();

  factory GoodsAreaCategoryEntity.fromJson(Map<String, dynamic> json) => $GoodsAreaCategoryEntityFromJson(json);

  Map<String, dynamic> toJson() => $GoodsAreaCategoryEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

@JsonSerializable()
class GoodsAreaCategoryData {

	late String id;
	@JSONField(name: "img_path")
	late String imgPath;
	late String name;
	late String sort;
  
  GoodsAreaCategoryData();

  factory GoodsAreaCategoryData.fromJson(Map<String, dynamic> json) => $GoodsAreaCategoryDataFromJson(json);

  Map<String, dynamic> toJson() => $GoodsAreaCategoryDataToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}